package com.shitou.shitoumember.service;

import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shitou.shitoucommons.utils.PageUtils;
import com.shitou.shitoucommons.utils.RespBean;
import com.shitou.shitoumember.entity.SendReceiveEntity;

import java.util.Map;

/**
 * 保存用户与之交流的人数
 *
 * @author shitouren
 * @email 3076767823@qq.com
 * @date 2023-04-14 02:46:20
 */
public interface SendReceiveService extends IService<SendReceiveEntity> {

    PageUtils queryPage(Map<String, Object> params);


    /**
     * 创建聊天关联表
     * @param memberId
     * @param beingMemberId
     * @return
     */
    RespBean createSendReceive(Long memberId, Long beingMemberId);


    /**
     * 删除聊天，不擅长记录
     * @param memberId
     * @param beingMemberId
     * @return
     */
    RespBean deleteSendReceive(Long memberId, Long beingMemberId);


    /**
     * 获取当前用户聊天的所有用户的id
     * @param memberId
     * @return
     */
    RespBean getMemberReceive(Long memberId);


}

